/// id : 1
/// name : "4141515"
/// desc : "251236326262"
/// imageUrl : "35125124526"
/// videoUrl : "http://rec6p45ah.hn-bkt.clouddn.com/9.mp4"
/// dFlag : 1
/// createTime : "2022-07-04T18:08:56"
/// updateTime : "2022-07-04T18:08:56"

class UserList {
  late int id;
  late String name;
  late String desc;
  late String imageUrl;
  late String videoUrl;
  late int dFlag;
  late String createTime;
  late String updateTime;

  static UserList? fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    UserList userListBean = UserList();
    userListBean.id = map['id'];
    userListBean.name = map['name'];
    userListBean.desc = map['desc'];
    userListBean.imageUrl = map['imageUrl'];
    userListBean.videoUrl = map['videoUrl'];
    userListBean.dFlag = map['dFlag'];
    userListBean.createTime = map['createTime'];
    userListBean.updateTime = map['updateTime'];
    return userListBean;
  }

  Map toJson() => {
    "id": id,
    "name": name,
    "desc": desc,
    "imageUrl": imageUrl,
    "videoUrl": videoUrl,
    "dFlag": dFlag,
    "createTime": createTime,
    "updateTime": updateTime,
  };
}